import request from '@/utils/request'

// 查询个人错题本列表
export function myStudyWrong(query) {
  return request({
    url: '/study/studyWrong/my',
    method: 'get',
    params: query
  })
}


// 查询错题本列表
export function listStudyWrong(query) {
  return request({
    url: '/study/studyWrong/list',
    method: 'get',
    params: query
  })
}

// 查询错题本详细
export function getStudyWrong(id) {
  return request({
    url: '/study/studyWrong/' + id,
    method: 'get'
  })
}

// 新增错题本
export function addStudyWrong(data) {
  return request({
    url: '/study/studyWrong',
    method: 'post',
    data: data
  })
}

// 修改错题本
export function updateStudyWrong(data) {
  return request({
    url: '/study/studyWrong',
    method: 'put',
    data: data
  })
}

// 删除错题本
export function delStudyWrong(id) {
  return request({
    url: '/study/studyWrong/' + id,
    method: 'delete'
  })
}

// 导出错题本
export function exportStudyWrong(query) {
  return request({
    url: '/study/studyWrong/export',
    method: 'get',
    params: query
  })
}
